package com.liuyfly.leetcode.model;

/**
 * @author liuyangfang at 2022-09-02 17:44
 */
public class TreeNode<T> {
    public T      val;
    public TreeNode<T> left;
    public TreeNode<T> right;

    public TreeNode() {
    }

    public TreeNode(T val) {
        this.val = val;
    }

    public TreeNode(T val, TreeNode<T> left, TreeNode<T> right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}
